﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace TransFormer.Web
{
    public partial class CaseDetail : System.Web.UI.Page
    {
        protected string TitleDesc { get; set; }
        protected string ImgPath { get; set; }
        protected string Content { get; set; }
        private BLL.KeyWords _bllKey = new TransFormer.BLL.KeyWords();
        protected void Page_Load(object sender, EventArgs e)
        {
            var model2 = _bllKey.GetModel(1);
            if (model2 != null)
            {
                HtmlMeta keywords = new HtmlMeta();
                keywords.Name = "keywords";
                keywords.Content = model2.KeyContent;
                Page.Header.Controls.Add(keywords);
                HtmlMeta desc = new HtmlMeta();
                desc.Name = "description";
                desc.Content = model2.PageDesc;
                Page.Header.Controls.Add(desc);
                Title = model2.Title;

            }
            var a = Request["a"];
            switch (a)
            {
                case "1":
                    TitleDesc = "Supplier for 2010 ShangHai EXPO";
                    ImgPath = "Images/Case/case1.jpg";
                    Content = "The 41st World Expo was held in Shanghai from May 1 to October 31 2010, " +
                              "which was the first time organized by China. " +
                              "Therefore national government invested up to RMB45 billion for the project. " +
                              "With this opportunity, we are honored to be qualified by providing low voltage switch cabinet, " +
                              "dry-type distribution transformers and other products.";
                    break;
                case "2":
                    TitleDesc = "Supplier for 2008 Beijing Olympics";
                    ImgPath = "Images/Case/case2.jpg";
                    Content = "One world, one dream. 2008 Beijing Olympic Games also made our terrific dream to be realized by providing switching power supply cabinet, insulation dry-type distribution transformers, dry-type distribution transformers and other products for Beijing National Stadium- Bird's Nest’s construction.";
                    break;
                case "3":
                    TitleDesc = "Supplier for 2011 High Speed ​​Rail Shenzhen North Station";
                    ImgPath = "Images/Case/case3.jpg";
                    Content = "Shenzhen north station high speed rail construction was started from 2007 to 2011. It becomes the passenger intersection and hub station for Guangzhou-Shenzhen-Hongkong high-speed railway and the Xiamen-Shenzhen express rail, which used our low voltage switch cabinet, insulation dry-type power transformers and other products.";
                    break;
                case "4":
                    TitleDesc = "Supplier for Bao’an Power Supply Bureau in 2009";
                    ImgPath = "Images/Case/case4.jpg";
                    Content = "Bao'an district is an industrial town, whose electricity consumption accounted for half of Shenzhen. In 2009, Shenzhen municipal government invested more than RMB4billion to improve overloading of main network structure and distribution network circuit, low ring network, dilapidated equipment and poor resilience. Among the equipment investment, our products of 110KV class immersed OLTC power transformer, low voltage switch cabinet, high pressure components have been applied for the construction of power grids.";
                    break;
                case "5":
                    TitleDesc = "Supplier for Futian Power Supply Bureau in 2006";
                    ImgPath = "Images/Case/case5.jpg";
                    Content = "Futian district is the location for Shenzhen municipal government, which is also the development and construction center in Shenzhen. In 2006, Futian district encountered a bottleneck for electricity using. Therefore power supply bureau purchased several sets of 110kv oil immersed on-load tap-class power transformers, high-voltage components and other products for the expansion of capacity increase.";


                    break;




            }
        }
    }
}